using FubuMVC.Core.Urls;
using HtmlTags;

namespace simple.Controllers
{
    public class HomeController
        :Icontroller
    {
        private readonly IUrlRegistry urls;

        public HomeController(IUrlRegistry urls)
        {
            this.urls = urls;
        }

        public HtmlDocument Start()
        {
            var url = urls.UrlFor<NextController>(c => c.SomeaotherAction());
            var link = new LinkTag("next page", url);

            var document = new HtmlDocument {Title = "My 1st FUBU website"};
            document.Body.Append(link);

            return document;
        }

//        public string Start()
//        {
//            return "hello world";
//        }
//
//        public HtmlTag Start()
//        {
//            return new HtmlTag("div").Text("hello world");
//        }
    }

    public class Icontroller
    {
    }
}